<?php /* @var $this Controller */ ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<meta name="language" content="en" />
<!-- 
	<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/main.css" />
	<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/form.css" />
 -->
    <link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->theme->baseUrl;?>/css/bootstrap.css" />
    <link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->theme->baseUrl;?>/css/font-awesome.css" />
    <link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->theme->baseUrl;?>/css/bbtvts.css" />
	<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->theme->baseUrl;?>/css/bootstrap-responsive.css" />
    
    <style type="text/css">
      body {
        padding-top: 20px;
        padding-bottom: 40px;
      }
    </style>
	<title><?php echo CHtml::encode($this->pageTitle); ?></title>
</head>

<body>

<!-----HEADER------>
<div class="header_block">
	<div class="container">
	      <div class="masthead">
	   <!-- 
	      <form action="login.php"  method="post" class="form-inline pull-right font12" style="padding-top:10px;">
		  <input name="username" id="username" type="text" class="input-small" placeholder="Email">
		  <input name="password" id="password" type="password" class="input-small" placeholder="Password">
		  <button type="submit" name="submit" class="btn btn-inverse">Sign in</button>
		  </form>
		-->
		<ul class="nav nav-pills pull-right font12" style="padding-top:5px;">
			  <?php $this->widget('zii.widgets.CMenu',array(
					'items'=>array(
						array('label'=>'Home', 'url'=>array('/site/index')),
						array('label'=>'About', 'url'=>array('/site/page', 'view'=>'about')),
						array('label'=>'Contact', 'url'=>array('/site/contact')),
						array('label'=>'Login', 'url'=>array('/site/login'),
							  'visible'=>Yii::app()->user->isGuest, 
							  'itemOptions'=>array('class'=>'dropdown2')),
						array('label'=>'Logout ('.Yii::app()->user->name.')', 'url'=>array('/site/logout'), 'visible'=>!Yii::app()->user->isGuest)
					),
					'htmlOptions'=>array('class'=>'nav nav-pills pull-right font12','style'=>'padding-top:5px;'),
				)); ?>
<!-- 			  <li class="active"><a href="home.php">Home</a></li> -->
<!-- 			  <li><a href="scrap.php">Scrap</a></li> -->
<!-- 			  <li><a href="message.php">Message</a></li> -->
<!-- 			  <li><a href="gallery.php">Gallery</a></li> -->
<!-- 			  <li class="dropdown"> -->
<!-- 			    <a class="dropdown-toggle" -->
<!-- 			       data-toggle="dropdown" -->
<!-- 			       href="profile.php"> -->
<!-- 				Profile -->
<!-- 				<b class="caret"></b> -->
<!-- 			      </a> -->
<!-- 			    <ul class="dropdown-menu"> -->
<!-- 			      <li><a href="setting.php"><i class="icon-cog"></i>Settings</a></li> -->
<!-- 			      <li><a href="logout.php">Log Out</a></li> -->
<!-- 			    </ul> -->
		</ul>
		<a href="index.php">
			 <img src="<?php echo Yii::app()->theme->baseUrl;?>/img/bbtvts_logo.png" alt="babytivities" style="padding-top:10px;">
		</a>
		</div>
	</div>
</div>
<!------HEADER EOF-------->
	
	<div class="container">
		<?php echo $content; ?>
	</div><!--container--->
	
	<div class="clear"></div>

<?php Yii::app()->clientScript->registerScriptFile(Yii::app()->theme->baseUrl.'/js/addons/kinetic-v4.0.0.js'); ?>
<?php Yii::app()->clientScript->registerScriptFile(Yii::app()->theme->baseUrl.'/js/addons/jquery.iframe-transport.js'); ?>
<?php Yii::app()->clientScript->registerScriptFile(Yii::app()->theme->baseUrl.'/js/addons/jquery.fileupload.js'); ?>
<?php Yii::app()->clientScript->registerScriptFile(Yii::app()->theme->baseUrl.'/js/addons/colorpicker.js'); ?>
<?php Yii::app()->clientScript->registerScriptFile(Yii::app()->theme->baseUrl.'/js/bootstrap.js'); ?>
    
	<!-----FOOTER------>
	<div class="zigzag_block">&nbsp;</div>
	<div id="footer" class="footer_block">
		<div class="container">
		      <div class="row">
			      <div class="span6 footer">
				<p>&copy; Babytivities 2012</p>
			      </div>
			      <div class="span2">
				<ul class="nav">
				  <li><a href="#">About</a></li>
				  <li><a href="#">Terms and Privacy</a></li>
				  <li><a href="#">Contact us</a></li>
				</ul>
			      </div>
			      <div class="span2">
				<ul class="nav">
				  <li><a href="#">FAQ</a></li>
				  <li><a href="#">Blog</a></li>
				  <li><a href="#">Developers</a></li>
				</ul>
			      </div>
	
		      </div>
		</div>
	</div>
	<!------FOOTER EOF-------->

</div><!-- page -->

</body>
</html>
